home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "User - ScaleMode example"
- ClientHeight = 3660
- ClientLeft = 4155
- ClientTop = 2265
- ClientWidth = 3960
- LinkTopic = "Form1"
- ScaleHeight = 3660
- ScaleWidth = 3960
- Begin VB.PictureBox Picture1
- AutoSize = -1 'True
- Height = 1410
- Left = 120
- Picture = "Form1.frx":0000
- ScaleHeight = 3
- ScaleLeft = 1
- ScaleMode = 0 'User
- ScaleTop = 1
- ScaleWidth = 3
- TabIndex = 0
- Top = 120
- Width = 1410
- Begin VB.Shape Shape1
- FillColor = &H000000FF&
- FillStyle = 0 'Solid
- Height = 135
- Left = 0
- Shape = 1 'Square
- Top = -15
- Width = 135
- End
- End
- Begin VB.Label Label1
- Caption = $"Form1.frx":1162
- Height = 1380
- Left = 135
- TabIndex = 1
- Top = 2100
- Width = 3705
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- 'This small sample is a simple but useful example
- 'With a little imagination, a VB hacker
- 'could build a variety of useful routines
- 'to exploit the principal.
- 'Nigel Taylor
- 'taypre@sympatico.ca
- Private Sub Picture1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim msg
- X = Int(X)
- Y = Int(Y)
- X = X & Y
- msg = " - " & X
- Shape1.Move Left(X, 1), Right(X, 1)
- Select Case X
- Case 11
- MsgBox "X" & msg
- Case 12
- MsgBox "O" & msg
- Case 13
- MsgBox "O" & msg
- Case 21
- MsgBox "O" & msg
- Case 22
- MsgBox "X" & msg
- Case 23
- MsgBox "O" & msg
- Case 31
- MsgBox "O" & msg
- Case 32
- MsgBox "O" & msg
- Case 33
- MsgBox "X" & msg
- End Select
- End Sub
-